<%@page contentType="text/html; charset=UTF-8"%>
<%@page import="java.util.List"%>
<%@page import="com.saltfish.appengine.worktable.datastore.Work"%>
<%@page import="java.util.Map"%>
<%@page import="java.util.Set"%>
<%@page import="java.util.TreeMap"%>
<%
	request.setCharacterEncoding("UTF-8");
	String title = (String)request.getAttribute("title");
	String selYm = (String)request.getAttribute("selYm");
 %>
<!DOCTYPE html> 
<html> 
	<head> 
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title><%=title%></title> 
	<meta name="apple-mobile-web-app-capable" content="yes"/>
	<link rel="apple-touch-icon" href="/images/calendar.png"> 
	<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0a4.1/jquery.mobile-1.0a4.1.min.css" />
	<script type="text/javascript" src="http://code.jquery.com/jquery-1.5.2.min.js"></script>
	<script type="text/javascript" src="http://code.jquery.com/mobile/1.0a4.1/jquery.mobile-1.0a4.1.min.js"></script>
    <script>
	</script>     
</head> 
<body>
    <div data-role="page" id="page_cal" >
        <div data-role="header"  data-theme="a" data-position="inline">
			<h1><%=title%></h1>
        </div>
        <div data-role="content" data-position="inline">
        	<ul data-role="listview"> 
<%
		Map<String, String>map = (Map<String, String>)request.getAttribute("selYmList");
		Set<String> keys =map.keySet();
		for (String key : keys) {
			String ymJp = key.substring(0,4) + "年" + key.substring(5) + "月";
			String value = map.get(key);
%>
				<a href="/worktable?selYm=<%=key%>" data-role="button" data-icon="<%=value%>" data-transition="fade"><%=ymJp%></a>
<%}%>
			</ul>
		</div>
	</div>
</body>
</html>
